package Service;

import Dao.ManagerDao;
import Dao.UpdateManagerDao;
import Table.Manager;

public class UpdateManagerService {
    public static Boolean Update(String username, String password1, String password2) {
        Manager manager = ManagerDao.FindManager(username, password1);
        if (manager == null) {
            return false;
        }
        UpdateManagerDao.Update(username, password2);
        return true;
    }
}
